/**
 * Created by fcs on 2014/11/19.
 */
function checkText(){
    var content =$("#text6").val();
    if( content==""){
        alert("请输入一串字符");
    }else {
        var  reg = /^\d+$/g; //匹配数字
        var  b = reg.test(content);
        if(b){
            alert("OK");
        }else{
            alert("ERROR");
        }
    }
}